home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 28
/
CD Expert nº 28.iso
/
V-Rally
/
SCRIPTS
/
MASTER.SCR
Wrap
Text File
|
1999-01-27
|
4KB
|
273 lines
/********************************/
/* Master script for V-Rally PC */
/* Edited by */
/* Craig Weeks */
/* Don Williamson */
/* (Aqua-Pacific, UK) */
/********************************/
[system]
{
master:
cd "System"
Install "System.grp"
}
[info]
{
InstallDefines
id "VRALLY"
version "1.0"
maker "ERE"
}
[classes]
{
SetPrefs 5,PRESENTATION
add "title",0,0,0
SetPrefs 5,ARCADE_EASY
add "Arcade_E",0,0,4
SetPrefs 5,ARCADE_MEDIUM
add "Arcade_M",0,0,6
SetPrefs 5,ARCADE_HARD
add "Arcade_X",0,0,8
SetPrefs 5,CHAMPIONSHIP
add "AC_INDO",0,0,3
add "AC_RAC",0,0,3
add "AC_CATA",0,0,3
add "AC_SAFA",0,0,3
add "AC_CORS",0,0,3
add "AC_ZELA",0,0,3
add "AC_MONA",0,0,3
add "AC_SUED",0,0,3
SetPrefs 5,TIME_ATTACK
add "Arcade_E",0,0,4
add "Arcade_M",0,0,6
add "Arcade_X",0,0,8
add "AC_INDO",0,0,3
add "AC_RAC",0,0,3
add "AC_CATA",0,0,3
add "AC_SAFA",0,0,3
add "AC_CORS",0,0,3
add "AC_ZELA",0,0,3
add "AC_MONA",0,0,3
add "AC_SUED",0,0,3
SetPrefs 5,DEMO
add "DemoScr",0,0,7
SetPrefs 5,CAR
add c_106,0,0,0
add c_saxo,0,0,0
add c_skoda,0,0,0
add c_nissan,0,0,1
add c_ibiza,0,0,1
add c_megan2,0,0,1
add c_megane,0,0,1
add c_306,0,0,1
add c_ford,0,0,2
add c_mitsu,0,0,2
add c_subaru,0,0,2
}
[game]
{
//%VID=NTSC
cd title
%COMP=GetCompilation
// below block added by CW7
if (%COMP&2)
{
}
//install vrally.grp
install snd.grp
%LANG=0
%CLASS=PRESENTATION
%STAGE=0
%LEVEL=0
%FLAGS=0
%TIMER=0
%WEATHER=0
%TIME=0
%ROAD=0
%INFO=0
%RET=0
%W=GetScrWidth
%H=GetScrHeight
%SOUND=0
%MOTOR=0
%NUM_LEVELS=0
while (1)
{
%NUM_LEVELS=%NUM_LEVELS+1
%TIMER=0
// below block added by CW7
if (!%LANG)
{
SysExec "lang"
cd title
%CLASS=GetPrefs 5
// %CLASS=DEMO // added by CW to show the demo
%LEVEL=GetPrefs 6
%STAGE=GetPrefs 7
// %STAGE=6 // added by CW to show the demo
if (%CLASS!=DEMO)
{
%LANG=1
install title.grp //Display V-Rally logo
}
}
if (%CLASS==DEMO)
{
%TIMER=40*30
}
$LEVEL=GetLevelName,%CLASS,%LEVEL
call exec
%RET=GetGameRet
switch (%RET)
{
case GAME_OVER
{
%CLASS=PRESENTATION
%LEVEL=0
}
case NEXT_RACE
{
%STAGE=%STAGE+1
}
case NEW_LEVEL
{
%CLASS=GetPrefs 5
%LEVEL=GetPrefs 6
%STAGE=GetPrefs 7
}
case MAIN_MENU
{
%CLASS=PRESENTATION
%LEVEL=0
}
case GAME_WON
{
SysExec "WellDone"
%CLASS=PRESENTATION
%LEVEL=0
}
}
}
//End of V-Rally.
}
[Exec]
{
%FLAGS=0
if ((%CLASS!=PRESENTATION)&&(%CLASS!=DEMO))
{
%INFO=1
call LoadExec
}
switch (%INFO)
{
case 0
{
call LoadExec
}
case 1
{
%RET=GetGameRet
%INFO=0
if (%RET!=MAIN_MENU)
{
call LoadExec
}
}
}
}
[LoadExec]
{
NewLevel %TIMER
SysExec $LEVEL
SetPrefs 5,%CLASS
SetPrefs 6,%LEVEL
SetPrefs 7,%STAGE
SetPrefs 8,%ROAD
SetPrefs 9,%WEATHER
SetPrefs 10,%TIME
if (%CLASS==DEMO)
{
SetDirector 3
%FLAGS|=0x200
}
if (%CLASS!=DEMO)
{
SetDirector 0
}
fade FADE_TO_BLACK
sound:
SOUNDSYS INIT
if (%COMP&16)
{
SOUNDSYS MUSIC INIT_CD
if (%CLASS==DEMO)
{
SOUNDSYS SET_TRACK 9
}
if (%CLASS!=PRESENTATION)
{
SOUNDSYS MUSIC PLAY
}
}
master:
RemoveDefines
TermLevel
GameLoop %FLAGS
call GetNewPrefs
InstallDefines
}
[GetNewPrefs]
{
UpdateRemotePrefs
%CLASS=GetPrefs 5
%LEVEL=GetPrefs 6
%STAGE=GetPrefs 7
%NUM_PLAYERS = GetPrefs 0
%NUM_FAR_PLAYERS = GetPrefs 1
}